<?php

include "../../lib/start.php";

check_session(FAKE_WINDOW);
check_permission(ADM_PERM);

$offset = $_REQUEST['offset'];

if(isset($_REQUEST['id']) && $_REQUEST['id'] != 0){
    $sel_news = "SELECT * FROM news WHERE id_news = ".$_REQUEST['id'];
    $res_news = $db->executeQuery($sel_news);
    $news = $res_news->fetch_assoc();
    $news['testo'] = ereg_replace("<br />", "", $news['testo']);
    $_i = $_REQUEST['id'];
}
else{
    $my_date = date("d/m/Y");
    $_i = 0;
}

include "dettaglio_news.html.php";

?>